Skip to content

Conversation

Kemi-Elizabeth
Copy link
Collaborator

Added info about automatic and manual deployments to both sites

Why

Closes #4730

What's changed

/learn/overview/build-deploy.html#automatic-deployment-default now has a deployment modes section.

Where are changes

Updates are for:

  • platform (sites/platform templates)
  • upsun (sites/upsun templates)

Added info about automatic and manual deployments to both sites
Copy link

github-actions bot commented Jul 1, 2025

Copy link

@davidbonachera davidbonachera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the content to clearer instructions.

Copy link

@davidbonachera davidbonachera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link

@davidbonachera davidbonachera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


### Automatic deployment (default)

This is the default behavior for all environments. With automatic deployment, changes like code pushes and variable updates are deployed immediately. This type of deployment is best suited for rapid iteration during development.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the last sentence.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why exactly? How would you change that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems wrong especially since manual deployments can't actually be enabled on dev environments but only production and staging. So it's more during the initial setup.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we are talking about "Automatic deployment", which is the default behavior. Not manual dpeloyment.


### Change deployment type

You can adjust deployment behavior in your environment (staging or production only). To switch to manual, navigate to the environment settings in the Console and select the manual deployments option.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to also show how to do it via the CLI and API.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI command is several blocks below.

For the API I'm not sure what's the common practice, I feel this page is quite extensive already.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not add the API in there indeed. I'll add a link for the CLI below

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has_staged_activities is not writable, it's just a helper for the frontend
use upsun environment:deploy:type

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gmoigneu @vitolkachova we already have the upsun environment:deploy:type and platform environment:deploy:type commands in the docs. Is there anything outstanding surrounding this issue? We also have a tab that addresses how to do this via the API too.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well we have a "Change deployment type" where we mention the setting can be changed in the Console. We show the CLI command in the section below, which it's not exactly accurate

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vitolkachova! I was under the impression that the CLI commands were accurate. @davidbonachera could you please let me know if there is something that needs to be changed regarding how users change deployment type via the CLI? It looks like this is the one outstanding thing that needs clarifying before we can merge :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commands themselves are alright, but the placing might be misleading, otherwise this thread would not be started initially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document the automatic/manual deployments feature
6 participants